package com.lyj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyj.pojo.Family;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FamilyMapper extends BaseMapper<Family> {
    // 根据邀请码查询家庭
    @Select("select * from family where share_code = #{shareCode}")
    Family selectByShareCode(String shareCode);
}
